<div class="picker-box">
	<div id="picker_{$name}" class="btn btn-primary picker_button" data-type="file" data-limit="1"><i class="fa fa-upload"></i> 上传文件</div>
	{if isset($value) && $value}
	<input type="hidden" name="{$name}" id="field_{$name}" value="{$value}">
	{else/}
	<input type="hidden" name="{$name}" id="field_{$name}" value="">
	{/if}
	<div id="fileList_{$name}" class="file-list">
		{if $value}
		{php}
		$file = get_attach($value);
		{/php}
		<div class="item" data-id="{$file['id']}">
			<div class="attach">
				<div class="close"><i class="fa fa-close"></i></div>
				<span>{$file['name']}</span>
			</div>
		</div>
		{/if}
	</div>
</div>